<%@include file="/header.jsp" %>


<div id="breadcrump">
    <ul id="breadcrump-list">
        <li>&raquo; Catalogus</li>
    </ul>
</div>

<table border="1">
    <tr>
        <th>Afbeelding</th>
        <th>Naam</th>
    </tr>
    <c:forEach var="category" items="${allCategorieList}">
        <c:url value="/ShowImage" var="showImageUrl">
            <c:param name="id" value="${category.image.id}" />
        </c:url>
        <c:url value="/ProductList" var="productListUrl">
            <c:param name="category_id" value="${category.id}" />
        </c:url>
        
        <tr>
            <td><img src="${showImageUrl}" width="150px" /></td>
            <td><a href="${productListUrl}">${category.name}</a></td>
        </tr>
    </c:forEach>
</table>

<%@include file="/footer.jsp" %>